<template>
  <router-view />
  <div id="nav">
    <router-link class="tab-bar-item" to="/home">
      <div class="icon">
        <i class="el-icon-s-home"></i>
      </div>
      <div>首页</div>
    </router-link>
    <router-link class="tab-bar-item" to="/my">
      <div class="icon">
        <i class="el-icon-user-solid"></i>
      </div>
      <div>我的</div>
    </router-link>
  </div>
</template>
<script>
import { reactive, toRefs } from "vue";

export default {
  setup() {
    const state = reactive({
      count: 0,
    });

    return {
      ...toRefs(state),
    };
  },
};
</script>
<style lang="scss">
@import url("./assets/css/base.css");
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
.tab-bar-item {
  color: #000;
}
#nav {
  background-color: #f6f6f6;
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 -5px 15px rgba(100, 100, 100, 0.1);
  a {
    // font-weight: bold;
    // color: #666;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
  .tab-bar-item {
    flex: 1;
    text-align: center;
    height: 50px;
    font-size: 14px;
  }
  .tab-bar-item .icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    margin-bottom: 3px;
    display: inline-block;
    vertical-align: middle;
  }
}
.el-message-box {
  width: 60% !important;
}
.el-tabs__item {
  // width: 10px;
  // height: 10px !important;
  // border-radius: 10px;
  // border: 1px solid #b3e19dcc;
  // background-color: #b3e19d;
  // font-weight: 900 !important;
  
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #529b2e !important;
}
// .el-tabs__nav.is-stretch > * {
//   flex: 0 1 auto !important;
// }
.el-tabs__item:hover {
  color: #95d475 !important;
}
.el-tabs__nav {
  height: 43px;
  // display: flex;
  // justify-content: space-evenly;
  // align-content: center;
}
// .codeStyle {
//   .el-input__inner {
//     // border:0 !important;
//     // border-bottom:1 solid black !important;
//   }
// }
</style>
